cmake_minimum_required(VERSION 3.0)

project(test_http_connection)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include_directories(./)
include_directories(./../)
include_directories(./../../)

set(test_http_connection_src_list ./test_http_connection.cpp
  ./../http_connection.cpp
  ./../../http_protocol/http_protocol_msg.cpp
  ./../../http_protocol/http_protocol_parser.cpp
  ./../../description_module/description_util.cpp
  ./../../io_reuse_module/io_epoll.cpp
  ./../../io_reuse_module/io_poll.cpp
  ./../../io_reuse_module/io_reuse_module.cpp
  ./../../loop_module/loop.cpp
  ./../../socket_module/socket_description.cpp
  ./../../socket_module/socket_channel.cpp
  ./../../socket_module/tls_socket_connection.cpp
  ./../../socket_module/tls_socket_operate.cpp
  ./../../socket_module/tcp_socket_connection.cpp
  ./../../socket_module/socket_address.cpp
  ./../../write_read_module/buffer.cpp)

add_executable(TEST_HTTP_CONNECTION ${test_http_connection_src_list})

set(libs ssl crypto pthread)

target_link_libraries(TEST_HTTP_CONNECTION ${libs})
